package com.project.bookstore.order.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("订单列表数据")
public class OrderMultiConditionVO {
    @ApiModelProperty("用户ID")
    private Long id;
    @ApiModelProperty("书籍名称")
    private String bookName;
    @ApiModelProperty("支付金额")
    private BigDecimal amount;
    @ApiModelProperty("书籍单价")
    private BigDecimal price;
    @ApiModelProperty("书籍数量")
    private Integer count;
    @ApiModelProperty("订单状态")
    private Integer state;
    @ApiModelProperty("发货单号")
    private String expressOrder;
    @ApiModelProperty("地址")
    private String address;
    @ApiModelProperty("备注")
    private String remarks;
    @ApiModelProperty("订单创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8",shape = JsonFormat.Shape.STRING)
    private LocalDateTime created;
}
